﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Scrubblet.FrontEnd.Models.Entities
{
    [Table("UserProfile")]
    public class UserProfile
    {
        public UserProfile()
        {
            Games = new Collection<Game>();
        }

        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int UserId { get; set; }
        public string UserName { get; set; }

        public virtual ICollection<Game> Games { get; set; } 
    }
}